<?php

namespace common\models;


use yii\db\ActiveRecord;

class GroupItem extends ActiveRecord
{
    public static function tableName()
    {
        return 'group_item';
    }

    public function rules()
    {
        return [
            [['id','order_id','group_type','goods_num','active_id','goods_id','goods_attr_id',
               'group_id','is_head','group_time','is_delete','create_time', 'update_time'],'integer'],
            [['goods_price','order_money','double']]

        ];
    }

    public function attributeLabels()
    {
        return [
            'id' => 'id',
            'order_id' => '订单id',
            'group_type' => '0拼团 1 单独购买',
            'goods_num' => '	商品数量',
            'goods_price' => '价格',
            'order_money' => '总价',
            'active_id' => '活动id',
            'goods_id' => '商品id',
            'goods_attr_id' => '活动属性id',
            'group_id' => '成团id',
            'is_head' => '是否是团长',
            'group_time' => '拼团时间',
            'is_delete' => '是否删除',
            'create_time' => '创建时间',
            'update_time' => '修改时间',
        ];
    }

}